import { IsNotEmpty, IsString, Length } from "class-validator";
import { Roles } from "src/roles/modules/roles.entity";

export class CreateUserDto {
    @IsString()
    @IsNotEmpty()
    @Length(6, 20)
    username: string;

    @IsString()
    @IsNotEmpty()
    @Length(6, 15)
    password: string;

    roles: Roles[] | number[];
}